/*
 * Created on 2006-2-5
 *
 */
package org.faquir.license;

import java.io.File;

import org.faquir.license.util.FileEncoder;

public class DoLicense
{

    /**
     * @param args
     */
    public static void main(String[] args) throws Exception
    {
        if (args.length > 2 || args.length < 1)
        {
            System.out.println("this command is 'java DoLicense inputFile [outputFile]'");
        }
        File input = new File(args[0]);
        String outFile = args.length == 2 ? args[1] : args[0];
        FileEncoder.encryptFile(input,outFile);
    }
}
